package com.me.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.me.db.domain.Result;

@RestController
public class TestController extends BaseController {

	@GetMapping("hello")
	public Result getNews(@RequestParam(name = "pageIndex", required = true, defaultValue = "1") Integer pageIndex,
			@RequestParam(name = "type", required = true, defaultValue = "1") Integer type) {
		return Result.success("我是帅哥王正年!");
	}

}
